-- GENERATED SPELL FOR [Gordunni Ogre Mage] --


function spell0_5237(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5237', 30335, 1)
end

function spell1_5237(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5237', 3000, 1)
end

function Sorts_5237(pUnit, Event)
local choix_sorts_5237 = math.random(0, 1)
if choix_sorts_5237 == 0 then
pUnit:RegisterEvent('spell0_5237', 1, 1)
end
if choix_sorts_5237 == 1 then
pUnit:RegisterEvent('spell1_5237', 1, 1)
end
end

function mob5237_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5237', math.random(1500, 3000), 1)
end

function mob5237_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5237_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5237_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5237, 1, 'mob5237_Action')
RegisterUnitEvent(5237, 2, 'mob5237_Leave')
RegisterUnitEvent(5237, 3, 'mob5237_Kill')
RegisterUnitEvent(5237, 4, 'mob5237_Die')
